<?php

namespace adminmatrix\server\command\make;

use think\console\command\Make;

class MakeValidate extends Make
{
    protected $type = "Validate";

    protected function configure()
    {
        parent::configure();
        $this->setName('make:validate')
            ->setDescription('创建验证器');
    }

    protected function getStub(): string
    {
        $stubPath = __DIR__. DIRECTORY_SEPARATOR.'stubs'. DIRECTORY_SEPARATOR;

        return $stubPath. 'validate.stub';
    }

    protected function getNamespace(string $app): string
    {
        return parent::getNamespace($app). '\\validate';
    }
}